package action.page;

import javax.servlet.http.HttpSession;

import org.apache.struts2.ServletActionContext;

/*
 * 点击注册页面
 */
public class Register {
	public String execute() {
		//得到HttpSession方法
		HttpSession session = ServletActionContext.getRequest().getSession();
		// 判断用户是否登录
				if ("true".equals(session.getAttribute("login"))) {
					return "home";
				}else{
					return "register";
				}
	}
}
